<%@include file="../header.jsp"%>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">    
        <c:forEach items="${pembimbing}" var="pembimbing" >    
        <c:if test="${(pembimbing.user.idUser == idDosen)}">
	<h1>List Mahasiswa Bimbingan - ${pembimbing.user.namaUser}</h1>
        </c:if>
        </c:forEach>
	</div>
	<!-- end page-heading -->
    
    <!-- start search -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
    <tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
    </tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
		
			<!--  start table-content  -->
            
            <!-- start pencarian --><!-- end pencarian -->
            	
                
		<div id="table-content">
                
		    <!--  start product-table ..................................................................................... -->
                                <script>
                                function cekStatusPembimbing()
                                {
                                if (document.listMhsBimbingan.statusPembimbing.value == "0")
                                {
                                alert("status pembimbing harus diisi !");
                                document.listMhsBimbingan.statusPembimbing.focus();
                                return false;
                                }
                                }
                                </script>
                                <table border="0" width="100%" cellpadding="0" cellspacing="0" id="id-form">
                                <form name="listMhsBimbingan" id="mainform" action="SidangTAController?page=listMhsBimbingan" onSubmit="return cekStatusPembimbing()" method="post">
                                    <tr>                                  
                                        <th width="0" valign="top" align="right">Status pembimbing </th>
                                        <td width="40" valign="middle" align="center">:</td>
                                        <td width="230"><select name="statusPembimbing" class="styledselect_form_1">
                                        <option value="0">-- pilih status pembimbing --</option>
                                        <option value="PEMBIMBING1" <c:if test="${statusPembimbing == 'PEMBIMBING1'}" >selected="selected"</c:if>>PEMBIMBING 1</option>
                                        <option value="PEMBIMBING2" <c:if test="${statusPembimbing == 'PEMBIMBING2'}" >selected="selected"</c:if>>PEMBIMBING 2</option>                               
                                        </select></td>
                                        <td></td>
                                        <td width="0"><input value="" class="form-tampilkan" type="submit" /></td>
                                    </tr>
                                </form>
                                </table>
                                        
				<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
				<tr>
				  <th class="table-header-repeat line-left "><a href="">No</a></th>
			          <th class="table-header-repeat line-left "><a href="">NRP</a></th>
                                  <th class="table-header-repeat line-left "><a href="">Nama</a></th>
				  <th class="table-header-repeat line-left "><a href="">Pilihan</a></th>
				</tr>
                                
                                <% int i = 1;%>
                                <c:if test="${statusPembimbing != null}" >
                                <c:if test="${empty listMhsBimbingan}">
                                    <c:if test="${statusPembimbing == 'PEMBIMBING1'}" >
                                    <tr>
                                        <td colspan="8" align="center" >Anda belum memiliki mahasiswa bimbingan dengan status pembimbing 1</td>
                                    </tr>
                                    </c:if>
                                    <c:if test="${statusPembimbing == 'PEMBIMBING2'}" >
                                    <tr>
                                        <td colspan="8" align="center" >Anda belum memiliki mahasiswa bimbingan dengan status pembimbing 2</td>
                                    </tr>
                                    </c:if>
                                </c:if>
                                <c:forEach items="${listMhsBimbingan}" var="listMhsBimbingan">
				<tr>
                                        <td align="center"><% out.print(i); i++; %></td>
					<td>${listMhsBimbingan.user.idUser}</td>
                                        <td>${listMhsBimbingan.user.namaUser}</td>
					<td class="options-width">
                                            <a href="SidangTAController?page=listBimbinganMhs&&idDosen=${idDosen}&&idMahasiswa=${listMhsBimbingan.user.idUser}" title="list bimbingan" class="icon-1 info-tooltip"></a>
                                            <a href="SidangTAController?page=statusTA&&idUser=${listMhsBimbingan.user.idUser}" title="Info TA" class="icon-1 info-tooltip"></a>
                                        </td>
				</tr>
                                </c:forEach>
                                </c:if>
				</table>
				<!--  end product-table................................... --> 
			</div>
			<!--  end content-table  -->
		
			<!--  start actions-box ............................................... --><!-- end actions-box........... -->
			
			<!--  start paging..................................................... -->
			
			<!--  end paging................ -->
			
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	Admin Skin &copy; Copyright Internet Dreams Ltd. <span id="spanYear"></span> <a href="">www.netdreams.co.uk</a>. All rights reserved.</div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
 
</body>
</html>